<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2024/4/23
 * Time: 14:20
 */

namespace app\controller\index\income;


use app\controller\index\BaseController;
use app\logic\index\income\IncomeFlowLogic;
use support\Request;
use support\Response;

class IndexController extends BaseController
{
    public function getTotal(Request $request):Response
    {
        $param = [];

        $data = IncomeFlowLogic::getInstance()->getTotal($param);
        return $this->endSuccess($data);

    }

    public function getPromotionIncomeList(Request $request):Response
    {
        $param = [];
//        $param['days']  = $request->input('days');
//        $param['datetime']  = $request->input('datetime');
//        $param['platform']  = $request->input('platform');
//        $param['keyid']  = $request->input('keyid');
//        $param['level_type']  = $request->input('level_type');
//        $param['status']  = $request->input('status');

        $data = IncomeFlowLogic::getInstance()->getPromotionIncomeList($param);
        return $this->endSuccess($data);

    }

    public function getRechargeList(Request $request):Response
    {
        $param = [];
//        $param['days']  = $request->input('days');
//        $param['datetime']  = $request->input('datetime');
//        $param['level_type']  = $request->input('level_type');
//        $param['status']  = $request->input('status');

        $data = IncomeFlowLogic::getInstance()->getRechargeList($param);
        return $this->endSuccess($data);

    }
}